package com.ktgj.customer.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.customer.mapper.EmployeePositionMapper;
import com.ktgj.customer.domain.EmployeePosition;
import com.ktgj.customer.service.IEmployeePositionService;

/**
 * 员工角色中间Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-07-06
 */
@Service
public class EmployeePositionServiceImpl implements IEmployeePositionService 
{
    @Autowired
    private EmployeePositionMapper employeePositionMapper;

    /**
     * 查询员工角色中间
     * 
     * @param id 员工角色中间ID
     * @return 员工角色中间
     */
    @Override
    public EmployeePosition selectEmployeePositionById(Long id)
    {
        return employeePositionMapper.selectEmployeePositionById(id);
    }

    /**
     * 查询员工角色中间列表
     * 
     * @param employeePosition 员工角色中间
     * @return 员工角色中间
     */
    @Override
    public List<EmployeePosition> selectEmployeePositionList(EmployeePosition employeePosition)
    {
        return employeePositionMapper.selectEmployeePositionList(employeePosition);
    }

    /**
     * 新增员工角色中间
     * 
     * @param employeePosition 员工角色中间
     * @return 结果
     */
    @Override
    public int insertEmployeePosition(EmployeePosition employeePosition)
    {
        return employeePositionMapper.insertEmployeePosition(employeePosition);
    }

    /**
     * 修改员工角色中间
     * 
     * @param employeePosition 员工角色中间
     * @return 结果
     */
    @Override
    public int updateEmployeePosition(EmployeePosition employeePosition)
    {
        return employeePositionMapper.updateEmployeePosition(employeePosition);
    }

    /**
     * 批量删除员工角色中间
     * 
     * @param ids 需要删除的员工角色中间ID
     * @return 结果
     */
    @Override
    public int deleteEmployeePositionByIds(Long[] ids)
    {
        return employeePositionMapper.deleteEmployeePositionByIds(ids);
    }

    /**
     * 删除员工角色中间信息
     * 
     * @param id 员工角色中间ID
     * @return 结果
     */
    @Override
    public int deleteEmployeePositionById(Long id)
    {
        return employeePositionMapper.deleteEmployeePositionById(id);
    }
}
